<?php
header("Access-Control-Allow-Methods: GET, POST, PUT, DELETE");
header("Access-Control-Allow-Headers: Content-Type");
$root = preg_replace("/^(.*(yunshop|shante)).*$/Uisx", "\\1", getcwd());
require_once("{$root}/myzhuaqu.php");
require_once("{$root}/vendor/autoload.php");

if(preg_match("/1688\.com/Uisx",$_REQUEST['url'])) {
    include_once "./1688/getItem.php";
}

if(preg_match("/shop.shante.me/Uisx",$_REQUEST['url'])) {
    include_once "./shante.me/getItem.php";
}